#ifndef UNITROLLMAKE_H
#define UNITROLLMAKE_H

#include <QDialog>
#include"unitsearch.h"
//#include"savesucceed.h"
//class SaveSUcceed;
class Widget;
#include"widget.h"

namespace Ui {
class unitrollmake;
}

class unitrollmake : public QDialog
{
    Q_OBJECT

public:
    explicit unitrollmake(QWidget *parent = 0);
    ~unitrollmake();
    UnitSearch *us;

    Widget *wd;
    void showtable();




private slots:
    void on_AddUnit_clicked();

    void on_save_clicked();

    void on_giveup_clicked();

    void receiveData(QString data);

    void on_UnitInformation_cellClicked(int row, int column);

    void on_DeleteUnit_clicked();

    void on_DeleteCadre_clicked();

    void on_UnitUp_clicked();

    void on_UnitDown_clicked();

    void on_CadreUp_clicked();

    void on_CadreDown_clicked();

private:
    Ui::unitrollmake *ui;

    void moveRow( QTableWidget *pTable, int nFrom, int nTo );//yidong

    // 复制行
    void copyRow( QTableWidget *pTable, int nFrom, int nTo );


signals:
    void ccc();   //接收传递过来的数据的槽

};

#endif // UNITROLLMAKE_H
